package cn.ctyun.ipush.web.user.service;

import cn.ctyun.ipush.web.user.bo.MenuTreeNode;
import cn.ctyun.ipush.web.user.bo.MenuUserNode;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by yanghongbo on 2016/7/11.
 */
@Component
public interface MenuService {
    public List<MenuTreeNode> findAllMenuTree(MenuTreeNode menuTreeNode);
    public List<MenuUserNode> findByUser(String userId);
    public MenuTreeNode findById(String menuId);
    public boolean addMenuUser(String menuTreeNodeId, String userId);
    public boolean deleteMenuByUser(String userId);
    public boolean addMenu(MenuTreeNode menuTreeNode);
}
